package com.lovejes.cuniao.domain.base;

import java.io.Serializable;


/**
 * This is an object that contains data related to the cn_act table.
 * Do not modify this class because it will be overwritten if the configuration file
 * related to this class is modified.
 *
 * @hibernate.class
 *  table="cn_act"
 */

public abstract class BaseCnAct  implements Serializable {

	public static String REF = "CnAct";
	public static String PROP_REMARK = "Remark";
	public static String PROP_ACTPRO = "Actpro";
	public static String PROP_ACTTYPE = "Acttype";
	public static String PROP_CREATERTYPE = "Creatertype";
	public static String PROP_USERID = "Userid";
	public static String PROP_CONTENT = "Content";
	public static String PROP_ACTPIC = "Actpic";
	public static String PROP_CREATETIME = "Createtime";
	public static String PROP_ACTHOUR = "Acthour";
	public static String PROP_FEETYPE = "Feetype";
	public static String PROP_ISSH = "Issh";
	public static String PROP_NOTICETYPE = "Noticetype";
	public static String PROP_HINTTYPE = "Hinttype";
	public static String PROP_ACCYQ = "Accyq";
	public static String PROP_ENDTIME = "Endtime";
	public static String PROP_MINNUM = "Minnum";
	public static String PROP_BUSID = "Busid";
	public static String PROP_ACTTIME = "Acttime";
	public static String PROP_MAXNUM = "Maxnum";
	public static String PROP_ENDHOUR = "Endhour";
	public static String PROP_DISCOUNT = "Discount";
	public static String PROP_DISTYPE = "Distype";
	public static String PROP_ID = "Id";
	public static String PROP_FACTNUM = "Factnum";
	public static String PROP_CAPITA = "Capita";
	public static String PROP_MONEY = "Money";
	public static String PROP_Cityid = "Cityid";
	public static String PROP_Address = "Address";
	public static String PROP_Mapx = "Mapx";
	public static String PROP_Mapy = "Mapy";
	public static String PROP_Orderid = "Orderid";
	public static String PROP_Flag = "Flag";
	public static String PROP_Flflag = "Flflag";

	// constructors
	public BaseCnAct () {
		initialize();
	}

	/**
	 * Constructor for primary key
	 */
	public BaseCnAct (java.lang.String id) {
		this.setId(id);
		initialize();
	}

	protected void initialize () {}



	private int hashCode = Integer.MIN_VALUE;

	// primary key
	private java.lang.String id;

	// fields
	private java.lang.String userid;
	private java.lang.String busid;
	private java.lang.String acttype;
	private java.lang.String creatertype;
	private java.lang.String actpro;
	private java.lang.String content;
	private java.lang.String feetype;
	private java.lang.String issh;
	private java.lang.String noticetype;
	private java.lang.String hinttype;
	private java.lang.String accyq;
	private java.util.Date acttime;
	private java.lang.Integer acthour;
	private java.util.Date endtime;
	private java.lang.Integer endhour;
	private java.lang.String discount;
	private java.lang.String distype;
	private java.lang.String capita;
	private java.lang.String money;
	private java.lang.Integer factnum;
	private java.lang.Integer minnum;
	private java.lang.Integer maxnum;
	private java.lang.String remark;
	private java.util.Date createtime;
	private java.lang.String actpic;
	private java.lang.String cityid;
	private java.lang.String address;
	private java.math.BigDecimal mapy;
	private java.math.BigDecimal mapx;
	private java.lang.String flag;
	private java.lang.String orderid;
	private java.lang.String flflag;
	
	/**
	 * Return the unique identifier of this class
     * @hibernate.id
     *  generator-class="uuid"
     *  column="ID"
     */
	public java.lang.String getId () {
		return id;
	}

	/**
	 * Set the unique identifier of this class
	 * @param id the new ID
	 */
	public void setId (java.lang.String id) {
		this.id = id;
		this.hashCode = Integer.MIN_VALUE;
	}


	public java.lang.String getCityid() {
		return cityid;
	}

	public void setCityid(java.lang.String cityid) {
		this.cityid = cityid;
	}

	public java.lang.String getAddress() {
		return address;
	}

	public void setAddress(java.lang.String address) {
		this.address = address;
	}

	public java.math.BigDecimal getMapy() {
		return mapy;
	}

	public void setMapy(java.math.BigDecimal mapy) {
		this.mapy = mapy;
	}

	public java.math.BigDecimal getMapx() {
		return mapx;
	}

	public void setMapx(java.math.BigDecimal mapx) {
		this.mapx = mapx;
	}

	/**
	 * Return the value associated with the column: USERID
	 */
	public java.lang.String getUserid () {
		return userid;
	}

	/**
	 * Set the value related to the column: USERID
	 * @param userid the USERID value
	 */
	public void setUserid (java.lang.String userid) {
		this.userid = userid;
	}



	/**
	 * Return the value associated with the column: BUSID
	 */
	public java.lang.String getBusid () {
		return busid;
	}

	/**
	 * Set the value related to the column: BUSID
	 * @param busid the BUSID value
	 */
	public void setBusid (java.lang.String busid) {
		this.busid = busid;
	}


	public java.lang.String getIssh() {
		return issh;
	}

	public void setIssh(java.lang.String issh) {
		this.issh = issh;
	}

	public java.lang.String getCreatertype() {
		return creatertype;
	}

	public void setCreatertype(java.lang.String creatertype) {
		this.creatertype = creatertype;
	}

	public java.lang.String getNoticetype() {
		return noticetype;
	}

	public void setNoticetype(java.lang.String noticetype) {
		this.noticetype = noticetype;
	}

	public java.lang.String getHinttype() {
		return hinttype;
	}

	public void setHinttype(java.lang.String hinttype) {
		this.hinttype = hinttype;
	}

	public java.lang.String getAccyq() {
		return accyq;
	}

	public void setAccyq(java.lang.String accyq) {
		this.accyq = accyq;
	}

	public java.lang.String getContent() {
		return content;
	}

	public void setContent(java.lang.String content) {
		this.content = content;
	}

	/**
	 * Return the value associated with the column: ACTTYPE
	 */
	public java.lang.String getActtype () {
		return acttype;
	}

	/**
	 * Set the value related to the column: ACTTYPE
	 * @param acttype the ACTTYPE value
	 */
	public void setActtype (java.lang.String acttype) {
		this.acttype = acttype;
	}



	/**
	 * Return the value associated with the column: ACTPRO
	 */
	public java.lang.String getActpro () {
		return actpro;
	}

	/**
	 * Set the value related to the column: ACTPRO
	 * @param actpro the ACTPRO value
	 */
	public void setActpro (java.lang.String actpro) {
		this.actpro = actpro;
	}



	/**
	 * Return the value associated with the column: FEETYPE
	 */
	public java.lang.String getFeetype () {
		return feetype;
	}

	/**
	 * Set the value related to the column: FEETYPE
	 * @param feetype the FEETYPE value
	 */
	public void setFeetype (java.lang.String feetype) {
		this.feetype = feetype;
	}



	/**
	 * Return the value associated with the column: ACTTIME
	 */
	public java.util.Date getActtime () {
		return acttime;
	}

	/**
	 * Set the value related to the column: ACTTIME
	 * @param acttime the ACTTIME value
	 */
	public void setActtime (java.util.Date acttime) {
		this.acttime = acttime;
	}



	/**
	 * Return the value associated with the column: ACTHOUR
	 */
	public java.lang.Integer getActhour () {
		return acthour;
	}

	/**
	 * Set the value related to the column: ACTHOUR
	 * @param acthour the ACTHOUR value
	 */
	public void setActhour (java.lang.Integer acthour) {
		this.acthour = acthour;
	}



	/**
	 * Return the value associated with the column: ENDTIME
	 */
	public java.util.Date getEndtime () {
		return endtime;
	}

	/**
	 * Set the value related to the column: ENDTIME
	 * @param endtime the ENDTIME value
	 */
	public void setEndtime (java.util.Date endtime) {
		this.endtime = endtime;
	}



	/**
	 * Return the value associated with the column: ENDHOUR
	 */
	public java.lang.Integer getEndhour () {
		return endhour;
	}

	/**
	 * Set the value related to the column: ENDHOUR
	 * @param endhour the ENDHOUR value
	 */
	public void setEndhour (java.lang.Integer endhour) {
		this.endhour = endhour;
	}



	/**
	 * Return the value associated with the column: DISCOUNT
	 */
	public java.lang.String getDiscount () {
		return discount;
	}

	/**
	 * Set the value related to the column: DISCOUNT
	 * @param discount the DISCOUNT value
	 */
	public void setDiscount (java.lang.String discount) {
		this.discount = discount;
	}


	public java.lang.String getCapita() {
		return capita;
	}

	public void setCapita(java.lang.String capita) {
		this.capita = capita;
	}

	/**
	 * Return the value associated with the column: MONEY
	 */
	public java.lang.String getMoney () {
		return money;
	}

	/**
	 * Set the value related to the column: MONEY
	 * @param money the MONEY value
	 */
	public void setMoney (java.lang.String money) {
		this.money = money;
	}



	/**
	 * Return the value associated with the column: FACTNUM
	 */
	public java.lang.Integer getFactnum () {
		return factnum;
	}

	/**
	 * Set the value related to the column: FACTNUM
	 * @param factnum the FACTNUM value
	 */
	public void setFactnum (java.lang.Integer factnum) {
		this.factnum = factnum;
	}



	/**
	 * Return the value associated with the column: MINNUM
	 */
	public java.lang.Integer getMinnum () {
		return minnum;
	}

	/**
	 * Set the value related to the column: MINNUM
	 * @param minnum the MINNUM value
	 */
	public void setMinnum (java.lang.Integer minnum) {
		this.minnum = minnum;
	}



	/**
	 * Return the value associated with the column: MAXNUM
	 */
	public java.lang.Integer getMaxnum () {
		return maxnum;
	}

	/**
	 * Set the value related to the column: MAXNUM
	 * @param maxnum the MAXNUM value
	 */
	public void setMaxnum (java.lang.Integer maxnum) {
		this.maxnum = maxnum;
	}



	/**
	 * Return the value associated with the column: REMARK
	 */
	public java.lang.String getRemark () {
		return remark;
	}

	/**
	 * Set the value related to the column: REMARK
	 * @param remark the REMARK value
	 */
	public void setRemark (java.lang.String remark) {
		this.remark = remark;
	}



	/**
	 * Return the value associated with the column: CREATETIME
	 */
	public java.util.Date getCreatetime () {
		return createtime;
	}

	/**
	 * Set the value related to the column: CREATETIME
	 * @param createtime the CREATETIME value
	 */
	public void setCreatetime (java.util.Date createtime) {
		this.createtime = createtime;
	}



	/**
	 * Return the value associated with the column: ACTPIC
	 */
	public java.lang.String getActpic () {
		return actpic;
	}

	/**
	 * Set the value related to the column: ACTPIC
	 * @param actpic the ACTPIC value
	 */
	public void setActpic (java.lang.String actpic) {
		this.actpic = actpic;
	}


	public java.lang.String getDistype() {
		return distype;
	}

	public void setDistype(java.lang.String distype) {
		this.distype = distype;
	}

	public java.lang.String getFlag() {
		return flag;
	}

	public void setFlag(java.lang.String flag) {
		this.flag = flag;
	}

	public java.lang.String getOrderid() {
		return orderid;
	}

	public void setOrderid(java.lang.String orderid) {
		this.orderid = orderid;
	}
	
	public java.lang.String getFlflag() {
		return flflag;
	}

	public void setFlflag(java.lang.String flflag) {
		this.flflag = flflag;
	}
	
	

	public boolean equals (Object obj) {
		if (null == obj) return false;
		if (!(obj instanceof com.lovejes.cuniao.domain.CnAct)) return false;
		else {
			com.lovejes.cuniao.domain.CnAct cnAct = (com.lovejes.cuniao.domain.CnAct) obj;
			if (null == this.getId() || null == cnAct.getId()) return false;
			else return (this.getId().equals(cnAct.getId()));
		}
	}

	public int hashCode () {
		if (Integer.MIN_VALUE == this.hashCode) {
			if (null == this.getId()) return super.hashCode();
			else {
				String hashStr = this.getClass().getName() + ":" + this.getId().hashCode();
				this.hashCode = hashStr.hashCode();
			}
		}
		return this.hashCode;
	}


	public String toString () {
		return super.toString();
	}


}